< previous page page_843 next page >

Page 843
(table continued from previous page)
ControlPropertySetting
Index1
Left120
TabIndex9
Top480
Width1200
VB.LabelNamelblPrompt
Caption"Label1"
Height300
Index0
Left120
TabIndex8
Top120
Width1200

Save this new project as PRJSECTEST.VBP and save the form as FRMSECTEST.FRM.
Next you need to add code to the form. Listing 21.41 shows the code for the general declarations area and the Form_Load event.
Type.gifListing 21.41. Coding the declarations and the Form_Load event.
Option Explicit
'
Dim objUser As Object
Dim objLog As Object

Private Sub Form_Load()
    '
    SetForm ' set up form
    SetLog ' set up log stuff
    SetUser ' set up user stuff
    '
End Sub
Now add the code for the three support routines called from Form_Load. The SetForm routine binds the input controls to the data fields, sets the form captions, and fills the data control with live records (see Listing 21.42).

 
< previous page page_843 next page >

If you like this book, buy it!